faApp.controller('NewOrderCWAViewCtrl',['$scope','newOrderService','$location','$controller','$route','$routeParams','$filter',function($scope,newOrderService,$location,$controller,$route,$routeParams,$filter) {   
  $controller('BaseCtrl', {$scope: $scope}); 

  $scope.id = $routeParams.id;
  $scope.m = $routeParams.m;
  $scope.item = {};
  $scope.loading = true;
  $scope.review = {'id':$scope.id};
  $scope.pType=$routeParams.pType;
  newOrderService.queryCWOrderXiangqing({'id':$scope.id,"orderCtrType":$scope.m}).then(function(json){
    $scope.item = json.orderDetail|| {};
    console.log($scope.item.frontProfitAmount);
    console.log($scope.item.allProfitAmount);
    $scope.loading = false;
    
  });
    


}]); 

